package com.goodmean.teacher.admin;

import com.goodmean.common.model.RewardPunishInformation;

import java.util.List;

public class RewardPunishInfomationService {
    public static final RewardPunishInfomationService me = new RewardPunishInfomationService();
    private RewardPunishInformation dao = new RewardPunishInformation().dao();

    public List<RewardPunishInformation> findByStuId(String student_id){
        return dao.find("SELECT * FROM reward_punish_information WHERE student_id = ?" , student_id);
    }

    public boolean add(RewardPunishInformation re){
       return re.save();
    }
}
